package cn.xumaoyang.basic.util;

/**
 * 定义验证码所需常量
 */
public class UserConstants {


    /*发送验证码的redis key前缀*/
    public static final String BUSINESS_TYPE_REGISTER = "business_type_register:";
    public static final String BUSINESS_TYPE_LOGIN = "business_type_login:";
    public static final String BUSINESS_TYPE_BINDER = "business_type_binder:";


    /**
     * 定义的验证码常量
     */
    public static final String BINDER_CODE_PREFIX = "bindercode:";


    /**
     *微信扫码登录所需定义网页地址的常量
     */
    public static final String WX_TOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";


    /**
     * 微信扫码登录所需AppID的常量。
     */
    public static final String APPID = "wxd853562a0548a7d0";


    /**
     * 微信扫码登录所需定义SECRET的常量
     */
    public static final String SECRET = "4a5d5615f93f24bdba2ba8534642dbb6";


    /**
     * 微信第三步所需地址。
     */
    public static final String WX_USER_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID";
}


